]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
WorkspacesDisplay: update the primary monitor index too
authorRui Matos <tiagomatos@gmail.com>
Wed, 4 Feb 2015 14:35:34 +0000 (15:35 +0100)
committerRui Matos <tiagomatos@gmail.com>
Thu, 5 Feb 2015 12:34:52 +0000 (13:34 +0100)
The primary monitor index might change so we need to update it too.

https://bugzilla.gnome.org/show_bug.cgi?id=743993

js/ui/workspacesView.js

index 1e08e245b2a4cef5466ce8089ea96ce4601ea3d6..a2b6bd4e6b7fd46ee63021d042b137b77fd716ec 100644 (file)
@@ -536,6 +536,7 @@ const WorkspacesDisplay = new Lang.Class({
         for (let i = 0; i < this._workspacesViews.length; i++)
             this._workspacesViews[i].destroy();
 
+        this._primaryIndex = Main.layoutManager.primaryIndex;
         this._workspacesViews = [];
         let monitors = Main.layoutManager.monitors;
         for (let i = 0; i < monitors.length; i++) {